import request from '@/utils/request'

export function userArea() {
	return request({
		url: '/system/captain/userArea',
		method: 'get'
	})
}

export function incomeRanking() {
	return request({
		url: '/system/income/ranking',
		method: 'get'
	})
}

// 获取用户升级信息
export function upgrade() {
	return request({
		url: '/user/upgrade',
		method: 'get'
	})
}

// 获取用户升级信息
export function upgradePay(query) {
	return request({
		url: '/system/pay/upgradePay',
		method: 'get',
		params: query
	})
}

// 获取我的合计统计
export function statistics() {
	return request({
		url: '/system/income/statistics',
		method: 'get'
	})
}

// 获取提现记录
export function extractList() {
	return request({
		url: '/system/extract/wallet',
		method: 'get'
	})
}

// 获取支付宝账户
export function payMentAccount() {
	return request({
		url: '/user/payMentAccount',
		method: 'get'
	})
}

// 修改支付宝账户
export function setPayMentAccount(data) {
	return request({
		url: '/user/setPayMentAccount',
		method: 'put',
		data: data
	})
}

// 获取提现账单
export function cashOutAndRefund() {
	return request({
		url: '/system/income/cashOutAndRefund',
		method: 'get'
	})
}

// 提现操作
export function cashOut() {
	return request({
		url: '/system/income/cashOut',
		method: 'get'
	})
}